package com.bawei.lib_http

import retrofit2.Retrofit

object NotWorkFactory {
    lateinit var retrofit: Retrofit
    fun factory(type: HttpType) :Retrofit{
        retrofit= when (type) {
            HttpType.NONE -> {
                NoneRetrofitImpl().getRetrofit()
            }

            HttpType.TOKEN -> {
                TokenRetrofitImpl().getRetrofit()
            }
        }
        return retrofit
    }
}